﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="PlugNT.Cms.Web.Admin.Pre_SysModel.Admin" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>模型管理</title>
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>

<div class="frmstatic" style="display:block;">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="nav_menu">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align="left">
                <table>
                    <tr>
                        <td><img src="../images/main_home.gif" width="16" height="16" /></td>
                        <td><label>扩展&nbsp;&gt;&nbsp;模型管理&nbsp;&gt;&nbsp;模型列表</label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <table>
                    <tr>
                        <td><img src="../images/arrow_left.png" width="16" height="16" /></td>
                        <td><label><a href="./Admin.aspx" class="sub_menu_selected">模型列表</a></label> | </td>
                        <td><label><a href="./Add.aspx" class="sub_menu">添加模型</a></label> | </td>
                        <td><label><a href="javascript:window.history.back();" class="sub_menu">返回</a></label></td>
                    </tr>
                </table>
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</div>

<div class="frmstatic" style="display:block; margin-top:10px;">
<form id="form1" runat="server">
<span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
<div class="controls">


          
        <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">
        <tr>
          <td width="28" nowrap bgcolor="#DDE9FF"><span class="line">编号</span></td>
          <td width="150" align="center" bgcolor="#DDE9FF"><span class="line">模型名称</span></td>
          <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">绑定栏目</span></td>
          <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">继承属性</span></td>
          <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">模型状态</span></td>
          <td width="90"  align="center" nowrap bgcolor="#DDE9FF"><span class="line">当前模型</span></td>
          <td width="120" align="center" nowrap bgcolor="#DDE9FF">操作</td>
        </tr>
        <asp:Repeater ID="rptAdmin" runat="server"  OnItemDataBound="rptAdmin_ItemDataBound">
          <ItemTemplate>
            <tr align="center">
              <td  nowrap="nowrap" bgcolor="#F4FBFF"><asp:Label ID="Label_id" runat="server" Text='<%#Eval("id") %>'></asp:Label>
              </td>
              <td bgcolor="#F4FBFF" title='<%#Eval("name") %>'> <%#Eval("name") %> </td>    
              <td bgcolor="#F4FBFF"> <%#Eval("title").ToString() != "" ? Eval("title").ToString() : "<span style='color:#ff0000'>全部栏目</span>"%> </td>               
              <td bgcolor="#F4FBFF"> <%#Eval("is_fixed").ToString() != "1" ? "继承" : "固定"%> </td>   
              <td bgcolor="#F4FBFF"> <%#Eval("enable").ToString() != "1" ? "X" : "√"%> </td>      
              <td align="center"  nowrap="nowrap"  bgcolor="#F4FBFF">
                <b><asp:Literal ID="litCurrent" runat="server"></asp:Literal></b>
              </td>
              <td width="120" align="center" nowrap="nowrap" bgcolor="#F4FBFF">
                <a href='SetScript.aspx?id=<%#Eval("id")%>'>脚本</a> | 
                <a href='Edit.aspx?id=<%#Eval("id")%>'>修改</a> | 
                <a href='?t=delete&id=<%#Eval("id")%>' onclick="return confirm('确定该模型删除吗？');">删除</a>
              </td>
            </tr>
          </ItemTemplate>
        </asp:Repeater>
        <tr>
          <td colspan="7" nowrap bgcolor="#F4FBFF">
            <span style="color:#999; "><!--#ffaa25//-->
            (所有扩展表管理：生成目录为生成静态页的根目录，请妥善修改！)
            </span>
          </td>
        </tr>
        </table>       
</div>
<span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</form>
</div>

</body>
</html>